//
//  MTManagerListCell.m
//  MeToo
//
//  Created by 俊松何 on 2018/9/26.
//  Copyright © 2018年 tianxie. All rights reserved.
//

#import "MTManagerListCell.h"

@interface MTManagerListCell()

@property (weak, nonatomic) IBOutlet UIButton *operbutton;

@end


@implementation MTManagerListCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    self.headerImageView.layer.masksToBounds = YES;
    self.headerImageView.layer.cornerRadius = 25;
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

-(void)setUser:(LTUser *)user
{
    _user = user;
    [self.headerImageView sd_setImageWithURL:[NSURL URLWithString:user.avatar] placeholderImage:defaultImgae];
    self.nameLable.text = user.name;
    self.signatureLable.text = user.signature;
    
}
- (IBAction)operclick:(UIButton *)sender {
    if(self.delegate && [self.delegate respondsToSelector:@selector(deleteUser:)])
    {
        [self.delegate deleteUser:self.user];
    }
}



@end
